<%--
  @author Tharanga Punchihewa
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<div id="land-registration-module-home-title" class="module-home-title">
    <%--<s:a href="landAlienationModuleHome.do"><img src="${pageContext.request.contextPath}/images/interest-party.png"
                                                        alt="Land Registration"><span><s:label
            value="%{getText('land_alienation.label')}"/></span></s:a>
    <span class="module-title-breaker"> > </span>
    <s:a href="detailApplicationApprove.do">
        <img src="${pageContext.request.contextPath}/images/registration-form.png" alt="Land Registration">
        <span>
            <s:label value="%{getText('modify_detail_alienation_application.label')}"/>
        </span>
    </s:a>--%>
    <s:if test="#session.userGroup !='slc'">
        <s:include value="./alienationApplicationNavigationDetail.jsp"/>
    </s:if>

</div>
<s:if test="editMode==8">
     <h2><s:label value="%{getText('attach_land.label')}"/></h2>
</s:if>
<s:else>
    <h2><s:label value="%{getText('modify_detail_alienation_application.label')}"/></h2>
</s:else>


<script type="text/javascript">
    $(document).ready(function() {
        $('.land-table').dataTable({
            "sPaginationType": "two_button",
            "bShowAll": true
        });
    });
</script>
<table class="width-100 margin-10-auto table land-table">
    <thead>
    <tr>
        <th><s:label value="%{getText('applied_date.label')}"/></th>
        <th><s:label value="%{getText('applicant_name.label')}"/></th>
        <th><s:label value="%{getText('status.label')}"/></th>
        <th><s:label value="%{getText('action.label')}"/></th>
    </tr>
    </thead>
    <tbody>
    <s:iterator status="status1" value="landApplicationList">
        <tr>
            <td class="center-align"><s:property value="submitDate"/></td>
            <td class="center-align"><s:property value="holder.name"/></td>
            <td class="center-align"><s:property value="status"/></td>
            <td class="center-align">
                <s:url id="editInitApplication" action="editInitApplication">
                    <s:param name="applicationId" value="id"/>
                    <s:param name="editMode" value="editMode"/>
                </s:url>
                <s:a href="%{editInitApplication}" title="%{getText('edit_tooltip')}">
                    <img src="<s:url value='/images/registration-form.png'/>" border="none" width="25"
                         height="25"/>
                </s:a>
            </td>
        </tr>
    </s:iterator>
    </tbody>
</table>